import request from '@/utils/request'

// 查询ATM钞箱机构列表
export function listCassetteOrg(query, page = true) {
    // 合并分页参数和查询参数
  const params = { ...query, page }
  return request({
    url: '/service/cassetteOrg/list',
    method: 'get',
    params: params
  })
}

// 查询ATM钞箱机构详细
export function getCassetteOrg(id) {
  return request({
    url: '/service/cassetteOrg/' + id,
    method: 'get'
  })
}

// 新增ATM钞箱机构
export function addCassetteOrg(data) {
  return request({
    url: '/service/cassetteOrg',
    method: 'post',
    data: data
  })
}

// 修改ATM钞箱机构
export function updateCassetteOrg(data) {
  return request({
    url: '/service/cassetteOrg',
    method: 'put',
    data: data
  })
}

// 删除ATM钞箱机构
export function delCassetteOrg(id) {
  return request({
    url: '/service/cassetteOrg/' + id,
    method: 'delete'
  })
}
